package com.zwh.se.design_pattern.creational.factory.c_abstract_factory;

import com.zwh.se.design_pattern.creational.factory.c_abstract_factory.factory.AmericanDessertFactory;
import com.zwh.se.design_pattern.creational.factory.c_abstract_factory.factory.DessertFactory;
import com.zwh.se.design_pattern.creational.factory.c_abstract_factory.factory.ItalyDessertFactory;
import com.zwh.se.design_pattern.creational.factory.c_abstract_factory.service.Coffee;
import com.zwh.se.design_pattern.creational.factory.c_abstract_factory.service.Dessert;

/**
 *
 */
public class Main {
    public static void main(String[] args) {
        System.out.println("抽象工厂");
        DessertFactory dessertFactory = new AmericanDessertFactory();
        Coffee coffee = dessertFactory.createCoffee();
        Dessert dessert = dessertFactory.createDessert();

        DessertFactory dessertFactory1 = new ItalyDessertFactory();
        Coffee coffee1 = dessertFactory1.createCoffee();
        Dessert dessert1 = dessertFactory1.createDessert();
    }
}
